<template>
    <el-dialog title="file" :visible.sync="fileVisible" fullscreen>
        <el-input v-model="fileName" placeholder="请输入文件标题！！！"></el-input>
        <mavon-editor v-model="fileContent" />
        <span slot="footer" class="dialog-footer">
            <el-button @click="dialogVisible = false">取 消</el-button>
            <el-button type="primary" @click="saveFile()">确 定</el-button>
        </span>
    </el-dialog>
</template>
<script>
export default {
    props: ['file'],
    data() {
        return {
            fileVisible: file.fileVisible,
            fileName: file.fileName,
            fileContent: file.fileContent,
            folderPath: file.folderPath
        }
    }
}
</script>
